from django.urls import path

from apps.LayerManagement import views

# ==================== 图层组接口路由配置 ====================
urlpatterns = [
    path('groups/', views.ListLayerGroupsView.as_view(), name='layer-group-list'),
    # path('groups/create/', views.CreateLayerGroupView.as_view(), name='layer-group-create'),
    path('groups/update/<str:group_id>/', views.UpdateLayerGroupView.as_view(), name='layer-group-update'),
    path('groups/operation/', views.GroupOperationsView.as_view(), name='layer-group-operation'), # 成组和拆分组
    path('groups/changeLayer/', views.ChangeLayerGroupView.as_view(), name='layer-group-layer-change'), # 图层变更
    # path('groups/delete/', views.DeleteLayerGroupView.as_view(), name='layer-group-delete'),
]

# # ==================== 图层组关联接口路由配置 ====================
# urlpatterns += [
#     path('mappings/', views.ListLayerGroupMappingsView.as_view(), name='layer-mapping-list'),
#     path('mappings/create/', views.CreateLayerGroupMappingView.as_view(), name='layer-mapping-create'),
#     path('mappings/delete/', views.DeleteLayerGroupMappingView.as_view(), name='layer-mapping-delete'),
# ]